//唤醒手机
device.wakeUp();

console.error(device.isScreenOn())

var swipeStartX = 539;
var swipeStartY = 1918;
var swipeEndX = 539;
var swipeEndY = 1100;
var swipeSpeed = 200;


//脚本执行时保持屏幕常亮,默认15分钟
var keepScreenOnMinutes = 15;

//上滑解锁
sleep(3 * 1000);
swipe(swipeStartX, swipeStartY, swipeEndX, swipeEndY, swipeSpeed);
sleep(3 * 1000);

//脚本执行时保持屏幕常亮
device.keepScreenOn(keepScreenOnMinutes * 60 * 1000);